package com.leaf.lowcode.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leaf.lowcode.entity.VisitRecordInfo;
import org.apache.ibatis.annotations.Select;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author kelvin
 * @since 2021-11-27
 */
public interface VisitRecordMapper extends BaseMapper<VisitRecordInfo> {
    @Select("select order_id from visit_record where order_id=#{orderId} and resource_code=#{resourceCode} and event_time=#{eventTime} LIMIT 1")
    String selectId(String orderId, String resourceCode, String eventTime);
}
